package com.bjpowernode.dao;

import com.bjpowernode.beans.NewsType;
import com.bjpowernode.exception.MyException;

import java.sql.SQLException;
import java.util.ArrayList;

public interface NewsTypeDao {
    ArrayList<NewsType> getAll() throws SQLException;

    NewsType get(int id) throws SQLException;

    void add(NewsType newsType) throws SQLException, MyException;

    void edit(NewsType newsType) throws SQLException, MyException;

    void del(int id) throws SQLException, MyException;

}
